﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElevatorSimCSharp
{
    class PrintClass
    {
        public static void printState(Floor[] floors, Elevator[] elevators)
        {
            foreach (Floor floor in floors)
            {
                Console.Write("People on floor " + floor.getFloorNumber() + " have these people wanting to go to ");
                List<Person> people = floor.getPersonsList();
                foreach (Person person in people)
                {
                    Console.Write(person.getWantToGoTo() + ", ");
                }
                Console.Write(".\r\n");
            }

            foreach (Elevator elevator in elevators)
            {
                Console.WriteLine("Elevator on floor " + elevator.getCurrentFloor() + " have direction " + elevator.getDirection() + " have people wanting to go to ");
                Console.WriteLine("Number of people in elevator: " + elevator.getNumberOfPeopleInElevator());
                List<Person> people = elevator.getPersonsList();
                foreach (Person person in people)
                {
                    Console.Write(person.getWantToGoTo() + ", ");
                }
                Console.Write(".\r\n");
            }
            Console.Write("\r\n");
        }
    }
}
